package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("规格属性")
@TableName("attr")//实体类名与数据库表明不一致时 可以利用此注解注解表示数据库名
public class Att {
    @TableId(value = "attr_id",type = IdType.AUTO)
    Integer attr_id;
    Integer shop_id;
    String name;
    @TableField("`desc`")
    String desc;
    Integer search_type;
    Integer attr_type;

    @TableField(exist = false)
    List<AttValue> attValueList;
}
